package org.luxor.cloud.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.luxor.commons.core.utils.HttpContextUtils;
import org.luxor.commons.core.web.controller.BaseRestController;
import org.luxor.commons.core.web.data.R;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;


/**
 * @author Mr.Yan  @date 2019/9/19
 */
@Slf4j
@RestController
@Api("白名单资源列表")
public class AnonController extends BaseRestController {

    @GetMapping("/login")
    @ApiOperation("登录接口")
    public R loginApi(HttpServletRequest request) {
        log.info("收到,(白名单资源)登陆请求[{}]", HttpContextUtils.getDomain(request));
        return R.ok();
    }

}
